package br.com.beiramar.entity.imovel.imovelCategoria;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "ImovelCategoria", schema = "ev")
@NamedQueries({ @NamedQuery(name = "imovelCategoria.Dados", query = "Select Object(result) from ImovelCategoria result") })
public class ImovelCategoria implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "idImovelCategoria", unique = true, nullable = false)
	private Integer idImovelCategoria;

	@Column(name = "imovelCategoria")
	private String imovelCategoria;

	public Integer getIdImovelCategoria() {
		return idImovelCategoria;
	}

	public void setIdImovelCategoria(Integer idImovelCategoria) {
		this.idImovelCategoria = idImovelCategoria;
	}

	public String getImovelCategoria() {
		return imovelCategoria;
	}

	public void setImovelCategoria(String imovelCategoria) {
		this.imovelCategoria = imovelCategoria;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((idImovelCategoria == null) ? 0 : idImovelCategoria
						.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ImovelCategoria other = (ImovelCategoria) obj;
		if (idImovelCategoria == null) {
			if (other.idImovelCategoria != null)
				return false;
		} else if (!idImovelCategoria.equals(other.idImovelCategoria))
			return false;
		return true;
	}

}
